package com.helmlabs.grouper.accounts.service;

import org.apache.cxf.interceptor.LoggingInInterceptor;
import org.apache.cxf.interceptor.LoggingOutInterceptor;
import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

public class Startup {
	
	public static void main(String[] args){
		System.out.println("Starting Server");
		AccountManagerImpl implementor = new AccountManagerImpl();
		JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
		svrFactory.setServiceClass(AccountManager.class);
		svrFactory.setAddress("http://localhost:9000/accountManager");
		svrFactory.setServiceBean(implementor);
		svrFactory.getInInterceptors().add(new LoggingInInterceptor());
		svrFactory.getOutInterceptors().add(new LoggingOutInterceptor());
		svrFactory.create();	
	}

}
